package com.ihrm.employee.mapper;

import com.ihrm.domain.employee.UserCompanyPersonal;
import com.ihrm.domain.employee.UserCompanyPersonalExample;
import java.util.List;

import com.ihrm.domain.employee.response.EmployeeReportResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserCompanyPersonalMapper {
    int countByExample(UserCompanyPersonalExample example);

    int deleteByExample(UserCompanyPersonalExample example);

    int deleteByPrimaryKey(String userId);

    int insert(UserCompanyPersonal record);

    int insertSelective(UserCompanyPersonal record);

    List<UserCompanyPersonal> selectByExample(UserCompanyPersonalExample example);

    UserCompanyPersonal selectByPrimaryKey(String userId);

    int updateByExampleSelective(@Param("record") UserCompanyPersonal record, @Param("example") UserCompanyPersonalExample example);

    int updateByExample(@Param("record") UserCompanyPersonal record, @Param("example") UserCompanyPersonalExample example);

    int updateByPrimaryKeySelective(UserCompanyPersonal record);

    int updateByPrimaryKey(UserCompanyPersonal record);

    List<EmployeeReportResult> findByReport(@Param("companyId") String companyId, @Param("month") String month);
}